package com.pym.sevice.ServiceImpl;

import com.pym.dao.departmentandstaffMapper;
import com.pym.pojo.staff;
import com.pym.sevice.staffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class staffServiceImpl implements staffService {

    @Autowired
    private departmentandstaffMapper dsf;
    @Override
    public List<staff> selectDepartmentAndStaffAll() {
        return dsf.selectDepartmentAndStaffAll();
    }

    @Override
    public int LoginByUsernameandByPassword(String username, String password) {
        return dsf.LoginByUsernameandByPassword(username,password);
    }
}
